{* Smarty *}
{if isset($smarty.session.uid)}
<div id="left_menu_header">{t}Personal menu{/t}</div>
	{if $is_admin}
  	{include file="$template/blocks/admin.tpl"}
		{if $display_all_modules}
    {include file="$template/blocks/modules.tpl"}
    {/if}
	{else}
		{include file="$template/blocks/user.tpl"}
		{if $active_modules AND $display_all_modules}
			{include file="$template/blocks/modules.tpl"}
		{/if}
	{/if}
{/if}
{if !isset($smarty.session.uid) AND $active_modules }
<br/>
  {include file="$template/blocks/modules.tpl"}
{/if}
<br/>
{include file="$template/blocks/group_modules.tpl"}